﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyPassword.aspx.cs" Inherits="Boiling.Web.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
        <title>Boiling社区修改用户信息</title>
		<script src="scriptaculous/lib/prototype.js" type="text/javascript"></script>
		<script src="scriptaculous/src/effects.js" type="text/javascript"></script>
		<script type="text/javascript" src="fabtabulous.js"></script>
		<script type="text/javascript" src="validation.js"></script>
		<link rel="stylesheet" type="text/css" href="/css/sheetstyle.css" />
</head>
<body>
		<div id="container">
			<p><a href="default.aspx">回到首页</a></p>
			<h1>修改密码</h1>
			<div id="mainmenu">
					<ul id="tabs">
						<li>
							<a href="#standard">基本信息（必填）</a>
						</li>
						<li>
							<a href="#using-titles">联系方式</a>
						</li>
						<li>
							<a href="#no-element-ids">附加信息</a>
						</li>
					</ul>
				<div>
				<div class="bar">&nbsp;</div>
				<div class="panel" id="standard">
					<form id="test" action="ModifyConfirm.aspx" method="post">
					<fieldset>
						<legend>Form</legend>
						<div class="form-row">
							<div class="field-label"><label for="field1">用户名</label>:</div>
							<div class="field-widget"><input name="UserName" id="UserName" class="required" title="Enter your name" /></div>
						</div>
						<div class="form-row">
							<div class="field-label"><label for="field8">原始密码</label>:</div>
							<div class="field-widget"><input type="password" name="oldPassWord" id="oldPassWord" class="required validate-password" title="Enter a password greater than 6 characters" /></div>
						</div>
						<div class="form-row">
							<div class="field-label"><label for="field8">新密码</label>:</div>
							<div class="field-widget"><input type="password" name="PassWord" id="PassWord" class="required validate-password" title="Enter a password greater than 6 characters" /></div>
						</div>
						<div class="form-row">
							<div class="field-label"><label for="field9">确认新密码</label>:</div>
							<div class="field-widget"><input type="password" name="rePassWord" id="rePassWord" class="required validate-password-confirm" title="Enter the same password for confirmation" /></div>
						</div>
						</div>-->
					</fieldset>
					<input type="submit" value="提交" /> <input type="button" value="重置" onclick="valid.reset(); return false" />
					</form>
					<script type="text/javascript">
						function formCallback(result, form) {
							window.status = "valiation callback for form '" + form.id + "': result = " + result;
						}
						
						var valid = new Validation('test', {immediate : true, onFormValidate : formCallback});
						Validation.addAllThese([
							['validate-password', 'Your password must be more than 6 characters and not be \'password\' or the same as your name', {
								minLength : 7,
								notOneOf : ['password','PASSWORD','1234567','0123456'],
								notEqualToField : 'field1'
							}],
							['validate-password-confirm', 'Your confirmation password does not match your first password, please try again.', {
								equalToField : 'field8'
							}]
						]);
					</script>
				</div>
		</div>
		<script type="text/javascript">
			new Fabtabs('tabs');
		</script>
		</div>
</body>
</html>
